package com.tszs.biz;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.tszs.dao.mapper.DistributionAllocationMapper;
import com.tszs.entity.DistributionAllocation;
import com.tszs.entity.DistributionAllocationExample;

/**
 * @ 类名:DistributionAllocationBiz
 * @ 类描述:分销配置表
 * @ 创建时间: 2019-03-21 11:49:11
 * @author 王俊
 */
@Service
public class DistributionAllocationBiz {
	@Autowired
	private DistributionAllocationMapper distributionAllocationMapper;
	/**
	 * @方法名称:insertSelective
	 * @方法类描述:分销配置添加
	 * @创建时间: 2019-03-21 11:49:11
	 * @author 王俊
	 *
	 */
	@Transactional
	public int insertSelective(DistributionAllocation record){
		return distributionAllocationMapper.insertSelective(record);
	}
	/**
	 * @方法名称:selectByExamplePage
	 * @方法类描述:分销配置分页
	 * @创建时间: 2019-03-21 11:49:11
	 * @author 王俊
	 *
	 */
	@Transactional
	public List<DistributionAllocation> selectByExamplePage(DistributionAllocation example) {
		return distributionAllocationMapper.selectByExamplePage(example);
	}
	/**
	 * @方法名称:selectByExample
	 * @方法类描述:分销配置查询
	 * @创建时间: 2019-03-21 11:49:11
	 * @author 王俊
	 *
	 */
	@Transactional
	public List<DistributionAllocation> selectByExample(DistributionAllocationExample example) {
		return distributionAllocationMapper.selectByExample(example);
	}
	/**
	 * @方法名称:updateByExampleSelective
	 * @方法类描述:分销配置修改
	 * @创建时间: 2019-03-21 11:49:11
	 * @author 王俊
	 *
	 */
	@Transactional
	public int updateByExampleSelective(DistributionAllocation record,DistributionAllocationExample example) {
		return distributionAllocationMapper.updateByExampleSelective(record, example);
	}
}
